<head>
<title>Dropdown List</title>
<meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1" />
</head>
<body>

<form method="POST" action="">

<?php

include('conString.php');

$sql="SELECT id, LName FROM employees";
$result=mysql_query($sql);

$options="";

while ($row=mysql_fetch_array($result)) 
{

    $id=$row["id"];
    $LName=$row["LName"];
    $options.="<OPTION VALUE=\"$id\">".$LName;
}
?>
<SELECT NAME=LName>
<OPTION VALUE=0>Choose
<?=$options?>
</SELECT>
</form>
</body>
</html>
